package com.zzh.sqllib.bean;

import com.alibaba.fastjson.JSON;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.NotNull;

@Entity
public class ProjectBean {

    @Id(autoincrement = true)
    private Long Id; //` int(225) NOT NULL AUTO_INCREMENT,
    @NotNull
    private int Id_Local = 0; // ` int(11) NOT NULL DEFAULT '0',
    private int Mid = 0; //` int(11) DEFAULT '0'  COMMENT '模版Id: 999 读书',
    @Index(unique = true)
    @NotNull
    private int UserId = -1; // ` int(11) NOT NULL,
    @NotNull
    private int Type = 0; // ` tinyint(4) DEFAULT NULL   COMMENT '类型: 取消',
    private int SeqType = 0; //` tinyint(4) DEFAULT '0' COMMENT '顺序 平行',
    @NotNull
    private int pClass = 0; // ` tinyint(4) DEFAULT NULL COMMENT '目标级别：取消',
    @NotNull
    private int Color = 0; //` tinyint(4) DEFAULT NULL  COMMENT '颜色',
    @NotNull
    private int FolderId = 0; // ` int(11) NOT NULL DEFAULT '0',
    @NotNull
    private int FolderId_Local = 0; // ` int(11) NOT NULL DEFAULT '0',
    private int ContextId; // ` int(11) DEFAULT NULL,
    private String Name; // ` varchar(64) DEFAULT NULL,
    private String Description; // ` varchar(500) DEFAULT NULL,
    private String ContactId; // ` varchar(128) DEFAULT NULL              COMMENT '共用的联系人Id，可以多人，逗号区隔',
    private int Status = 0; // ` tinyint(4) NOT NULL DEFAULT '0',
    @NotNull
    private long StartTime = 0; // ` int(11) NOT NULL     COMMENT '开始时间：取消',
    @NotNull
    private long DueTime = 0; // ` int(11) NOT NULL       COMMENT '截止时间：取消',
    @NotNull
    private int DurationTime = 0; // ` int(11) NOT NULL  COMMENT '持续时间：取消',
    @NotNull
    private long UpdateTime = 0; // ` int(11) NOT NULL    COMMENT '更新时间',
    @NotNull
    private int Review = 0; // ` tinyint(4) DEFAULT '0',
    @NotNull
    private int ReviewRate = 0; // ` tinyint(4) NOT NULL DEFAULT '0',
    private long ReviewStartTime = 0; // ` int(11) DEFAULT '0',
    @NotNull
    private long ReviewEndTime = 0; // ` int(11) NOT NULL DEFAULT '0',
    @NotNull
    private long CompleteTime = 0; // ` int(11) NOT NULL  COMMENT '完成时间：取消',
    @NotNull
    private int ifAuto = 0; // ` tinyint(4) NOT NULL DEFAULT '0'           COMMENT '完成最后一个行动是否自动完成本分组：取消',
    @NotNull
    private long CreateTime = 0; // ` int(11) NOT NULL    COMMENT '创建时间',
    @NotNull
    private int Seq = 0; // ` tinyint(4) NOT NULL DEFAULT '0'              COMMENT '排序',
    @NotNull
    private int FileFlag = 0; // ` tinyint(4) NOT NULL DEFAULT '0',
    @NotNull
    private int FcFlag = 0; // ` tinyint(4) NOT NULL DEFAULT '0',
    private String Name_Seg; // ` varchar(64) DEFAULT NULL,
    @NotNull
    private int Background = 0; // ` mediumint(9) NOT NULL DEFAULT '0',
    @NotNull
    private int AccessPermission = 0; // ` tinyint(4) NOT NULL DEFAULT '0' COMMENT '访问权限:0 不公开，仅自己 1 已共享给联系人 2 完全公开',
    @Generated(hash = 1909926789)
    public ProjectBean(Long Id, int Id_Local, int Mid, int UserId, int Type, int SeqType, int pClass, int Color,
            int FolderId, int FolderId_Local, int ContextId, String Name, String Description, String ContactId, int Status,
            long StartTime, long DueTime, int DurationTime, long UpdateTime, int Review, int ReviewRate,
            long ReviewStartTime, long ReviewEndTime, long CompleteTime, int ifAuto, long CreateTime, int Seq, int FileFlag,
            int FcFlag, String Name_Seg, int Background, int AccessPermission) {
        this.Id = Id;
        this.Id_Local = Id_Local;
        this.Mid = Mid;
        this.UserId = UserId;
        this.Type = Type;
        this.SeqType = SeqType;
        this.pClass = pClass;
        this.Color = Color;
        this.FolderId = FolderId;
        this.FolderId_Local = FolderId_Local;
        this.ContextId = ContextId;
        this.Name = Name;
        this.Description = Description;
        this.ContactId = ContactId;
        this.Status = Status;
        this.StartTime = StartTime;
        this.DueTime = DueTime;
        this.DurationTime = DurationTime;
        this.UpdateTime = UpdateTime;
        this.Review = Review;
        this.ReviewRate = ReviewRate;
        this.ReviewStartTime = ReviewStartTime;
        this.ReviewEndTime = ReviewEndTime;
        this.CompleteTime = CompleteTime;
        this.ifAuto = ifAuto;
        this.CreateTime = CreateTime;
        this.Seq = Seq;
        this.FileFlag = FileFlag;
        this.FcFlag = FcFlag;
        this.Name_Seg = Name_Seg;
        this.Background = Background;
        this.AccessPermission = AccessPermission;
    }
    @Generated(hash = 882656566)
    public ProjectBean() {
    }
    public Long getId() {
        return this.Id;
    }
    public void setId(Long Id) {
        this.Id = Id;
    }
    public int getId_Local() {
        return this.Id_Local;
    }
    public void setId_Local(int Id_Local) {
        this.Id_Local = Id_Local;
    }
    public int getMid() {
        return this.Mid;
    }
    public void setMid(int Mid) {
        this.Mid = Mid;
    }
    public int getUserId() {
        return this.UserId;
    }
    public void setUserId(int UserId) {
        this.UserId = UserId;
    }
    public int getType() {
        return this.Type;
    }
    public void setType(int Type) {
        this.Type = Type;
    }
    public int getSeqType() {
        return this.SeqType;
    }
    public void setSeqType(int SeqType) {
        this.SeqType = SeqType;
    }
    public int getPClass() {
        return this.pClass;
    }
    public void setPClass(int pClass) {
        this.pClass = pClass;
    }
    public int getColor() {
        return this.Color;
    }
    public void setColor(int Color) {
        this.Color = Color;
    }
    public int getFolderId() {
        return this.FolderId;
    }
    public void setFolderId(int FolderId) {
        this.FolderId = FolderId;
    }
    public int getFolderId_Local() {
        return this.FolderId_Local;
    }
    public void setFolderId_Local(int FolderId_Local) {
        this.FolderId_Local = FolderId_Local;
    }
    public int getContextId() {
        return this.ContextId;
    }
    public void setContextId(int ContextId) {
        this.ContextId = ContextId;
    }
    public String getName() {
        return this.Name;
    }
    public void setName(String Name) {
        this.Name = Name;
    }
    public String getDescription() {
        return this.Description;
    }
    public void setDescription(String Description) {
        this.Description = Description;
    }
    public String getContactId() {
        return this.ContactId;
    }
    public void setContactId(String ContactId) {
        this.ContactId = ContactId;
    }
    public int getStatus() {
        return this.Status;
    }
    public void setStatus(int Status) {
        this.Status = Status;
    }
    public long getStartTime() {
        return this.StartTime;
    }
    public void setStartTime(long StartTime) {
        this.StartTime = StartTime;
    }
    public long getDueTime() {
        return this.DueTime;
    }
    public void setDueTime(long DueTime) {
        this.DueTime = DueTime;
    }
    public int getDurationTime() {
        return this.DurationTime;
    }
    public void setDurationTime(int DurationTime) {
        this.DurationTime = DurationTime;
    }
    public long getUpdateTime() {
        return this.UpdateTime;
    }
    public void setUpdateTime(long UpdateTime) {
        this.UpdateTime = UpdateTime;
    }
    public int getReview() {
        return this.Review;
    }
    public void setReview(int Review) {
        this.Review = Review;
    }
    public int getReviewRate() {
        return this.ReviewRate;
    }
    public void setReviewRate(int ReviewRate) {
        this.ReviewRate = ReviewRate;
    }
    public long getReviewStartTime() {
        return this.ReviewStartTime;
    }
    public void setReviewStartTime(long ReviewStartTime) {
        this.ReviewStartTime = ReviewStartTime;
    }
    public long getReviewEndTime() {
        return this.ReviewEndTime;
    }
    public void setReviewEndTime(long ReviewEndTime) {
        this.ReviewEndTime = ReviewEndTime;
    }
    public long getCompleteTime() {
        return this.CompleteTime;
    }
    public void setCompleteTime(long CompleteTime) {
        this.CompleteTime = CompleteTime;
    }
    public int getIfAuto() {
        return this.ifAuto;
    }
    public void setIfAuto(int ifAuto) {
        this.ifAuto = ifAuto;
    }
    public long getCreateTime() {
        return this.CreateTime;
    }
    public void setCreateTime(long CreateTime) {
        this.CreateTime = CreateTime;
    }
    public int getSeq() {
        return this.Seq;
    }
    public void setSeq(int Seq) {
        this.Seq = Seq;
    }
    public int getFileFlag() {
        return this.FileFlag;
    }
    public void setFileFlag(int FileFlag) {
        this.FileFlag = FileFlag;
    }
    public int getFcFlag() {
        return this.FcFlag;
    }
    public void setFcFlag(int FcFlag) {
        this.FcFlag = FcFlag;
    }
    public String getName_Seg() {
        return this.Name_Seg;
    }
    public void setName_Seg(String Name_Seg) {
        this.Name_Seg = Name_Seg;
    }
    public int getBackground() {
        return this.Background;
    }
    public void setBackground(int Background) {
        this.Background = Background;
    }
    public int getAccessPermission() {
        return this.AccessPermission;
    }
    public void setAccessPermission(int AccessPermission) {
        this.AccessPermission = AccessPermission;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
